﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="UI.Category"
	x:Name="UserControl"
	d:DesignWidth="640" d:DesignHeight="480">

    <DockPanel x:Name="LayoutRoot">
        <TextBlock Text="Category:" TextWrapping="Wrap" DockPanel.Dock="Top"/>
        <DataGrid AutoGenerateColumns="False" Name="dataGrid1" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" DockPanel.Dock="Top" 
                     HeadersVisibility="None" GridLinesVisibility="None" CanUserReorderColumns="False" 
                     SelectedItem="{Binding Path=Categories }">
            <DataGrid.Columns>
                <DataGridCheckBoxColumn Binding="{Binding Selected}"  CanUserReorder="False" CanUserResize="False" />
                <DataGridTextColumn Binding="{Binding Text}" CanUserReorder="False" />
            </DataGrid.Columns>
        </DataGrid>
    </DockPanel>
</UserControl>